.chat {
  max-width: 80%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: 800px;
  border: 1px solid #eee;

}

.chat-title {
  border-bottom: 1px solid #eee;
  padding: 12px;
  text-align: center;
  font-size: 20px;
}

.messages {
  flex-grow: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

.message {
  padding: 1rem;
  margin: 1rem;
  border-radius: 0.5rem;
  background: #fff;
}

.my-message {
  background-color: rgb(14, 48, 84);
    color: white;
  align-self: flex-end;
}
.ai-message{
  align-self: flex-start;
  background-color: #388da8;
  color: white;
}

.message-box {
  display: flex;
  flex-shrink: 0;
  padding: 8px;
}

.message-box textarea {
  flex-grow: 1;
  border: 1px solid #eee;
  padding: 8px;
  border-radius: 4px;
  font-size: 14px;
}

.message-box button {
  padding: 5px 16px;
  border: none;
  border-radius: 4px;
  background: #388da8;
  color: #fff;
}
pre{
  font-size: 14px;
    white-space: pre-wrap;
}
html,body,div,h1,p,textarea,button,pre {
  margin: 0;
  box-sizing: border-box;
}